<?php
/*
	@file to authenticate if current user is legit
*/
require_once('../config.php');
require_once('../includes/class.user.php');

if(!User::isLoggedIn()){
	js_redirect('用户未登录，跳转至首页',HOME_URL,3000);
	die();
}else{
	//create a new instance of user, this object will have information of a logged in user
	//see User class __construct function
	$user = new User();
}
?>